@extends('admin.index')

@section('content')
<form method="post" class="form-x" action="{{ url('/admin/goods').'/'.$list->id }}" enctype='multipart/form-data'> 
        <input type='hidden' name='_token' value="{{ csrf_token() }}">
        <input type='hidden' name='_method' value="PUT"> 
      <div class="form-group">
        <div class="label">
          <label>商品名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{{ $list->title}}" name="title" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>商品价格：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{{ $list->price }}" name="price" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>商品图片：</label>
        </div>
        <div class="field" style="display">
          <input type='hidden' name='_token' value='{{ csrf_token() }}'>
          <input type="file"  name="showImg" class="input tips" style="width:25%; float:left ;" value=" {{ $list->showImg }}" />
          <input type="submit" class="button bg-blue margin-left"  value="修改"  style="float:left;">      
        </div>
      </div> 
            <div class="form-group">
      </div>    
    </form>
@stop